import { httpInstance } from '@/utils/request'

interface FecthStaffListAPIParams {
  group_id: string
  keyword?: string
}

interface FetchStaffListAPIResData {
  code: number
  data: Staff[]
  msg: string
  time: string
}

export function fetchStaffListAPI(
  params: FecthStaffListAPIParams,
  token: string,
) {
  return httpInstance.get<FetchStaffListAPIResData, FecthStaffListAPIParams>(
    'api/Project_extend/staffList',
    { params, headers: { token } },
  )
}
